<html>
<head>
<meta http-equiv="refresh" content="60" >
</head>
<body>
<div align=center><h3 style='margin:0'>{{ executor }}</h3></div>

<div align=center>
<table><tr><td>Pass Rate: <span style='color:{% if pass_rate >= 100 %}green{% else %}{%if pass_rate > 90 %}#FFCC00{% else %}{%if pass_rate > 80 %}orange{% else %}red{% endif %}{% endif %}{% endif %}'>{{ pass_rate|floatformat:2 }}</span></td>
<td>Backlog: <span style='color:{% if backlog == 0 %}green{% else %}{%if backlog < 6 %}#FFCC00{% else %}{%if backlog < 20 %}orange{% else %}red{% endif %}{% endif %}{% endif %}'>{{ backlog }}</td></tr>
</table>
</div>

{% if oldest %}
<div align=center>
<table><tr><td>Oldest: <a href='/tasks/{{ oldest.id }}'>{{ oldest.id }}</a></td>
<td>Age: {{ oldest.scheduled_time|timesince }}</td></tr>
</table>
</div>
{% endif %}

{% if current %}
<div align=center>
<table><tr><td>Current: <a href='/tasks/{{ current.id }}'>{{ current.id }}</a></td>
<td>Age: {{ current.assigned_time|timesince }} ago</td></tr>
</table>
</div>
{% endif %}


<ol style='margin:0'><div align=center>Recent:</div>
{% for finished in recently_finished %}
<li><a href='/tasks/{{ finished.id }}'>{{ finished.id }}</a> <span style='color:{% if finished.outcome == "success" %}green{% else %}{% if finished.outcome == "failed" %}red{% else %}orange{% endif %}{% endif %}'>{{ finished.outcome }}</span> {{ finished.completed_time|timesince }}</li>
{% endfor %}
</ol>
</body>
</html>
